package com.nulstudio.sppm.network;

import java.util.Arrays;
import java.util.Objects;

public final class DeleteSupplierRequest {
    private final Integer[] id;

    public DeleteSupplierRequest() {
        this.id = null;
    }

    public DeleteSupplierRequest(Integer[] id) {
        this.id = id;
    }

    public Integer[] getId() {
        return id;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DeleteSupplierRequest that = (DeleteSupplierRequest) o;
        return Arrays.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Arrays.hashCode(id);
    }
}
